package com.ruoyi.buy.service;

import com.ruoyi.buy.domain.entity.PO.BuyRequestbuyBill;
import com.ruoyi.buy.domain.entity.buy0008.Buy0008GetInfoByIdVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;


/**
 * 请购单Service接口
 * 
 * @author ruoyi
 * @date 2024-06-13
 */
public interface IBuyRequestbuyBillService 
{
    /**
     * 查询请购单
     * 
     * @param id 请购单主键
     * @return 请购单
     */
    public BuyRequestbuyBill selectBuyRequestbuyBillById(Long id);

    /**
     * 查询请购单列表
     * 
     * @param buyRequestbuyBill 请购单
     * @return 请购单集合
     */
    public List<BuyRequestbuyBill> selectBuyRequestbuyBillList(BuyRequestbuyBill buyRequestbuyBill);

    /**
     * 新增请购单
     * 
     * @param buyRequestbuyBill 请购单
     * @return 结果
     */
    public int insertBuyRequestbuyBill(BuyRequestbuyBill buyRequestbuyBill);

    /**
     * 修改请购单
     * 
     * @param buyRequestbuyBill 请购单
     * @return 结果
     */
    public int updateBuyRequestbuyBill(BuyRequestbuyBill buyRequestbuyBill);

    /**
     * 批量删除请购单
     * 
     * @param ids 需要删除的请购单主键集合
     * @return 结果
     */
    public int deleteBuyRequestbuyBillByIds(Long[] ids);

    /**
     * 删除请购单信息
     * 
     * @param id 请购单主键
     * @return 结果
     */
    public int deleteBuyRequestbuyBillById(Long id);

    void importData(MultipartFile file) throws IOException;

    public Buy0008GetInfoByIdVO getInfo(Long id);
}
